package com.four.seckill.feign;

import com.four.common.utils.R;
import com.four.common.vo.ShoppingVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: hxw
 * @Date: 2022/1/14 16:34
 */
@FeignClient("four-order")
@RequestMapping("/order")
public interface ShoppingFeign {

    /**
     * 添加订单
     * @param shoppingVo
     * @return
     */
    @PostMapping("shopping/addShopping")
    R addShopping(@RequestBody ShoppingVo shoppingVo);
}
